home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 7839 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.8 KB

  1. Path: newshost.lanl.gov!tanmoy
  2. From: tanmoy@qcd.lanl.gov (Tanmoy Bhattacharya)
  3. Newsgroups: comp.lang.pl1,comp.lang.c
  4. Subject: Re: PL/I and C
  5. Date: 28 Feb 1996 15:43:01 GMT
  6. Organization: Los Alamos National Laboratory
  7. Message-ID: <TANMOY.96Feb28084301@qcd.lanl.gov>
  8. References: <4gh5ru$eng@goanna.cs.rmit.EDU.AU> <AD536AAB9668B76CD@mcdialb09.it.luc.edu>
  9.     <312E363C.3CDE@corp.dialog.com> <TANMOY.96Feb23212936@qcd.lanl.gov>
  10.     <4h0gn2$mnk@wizvax.wizvax.net>
  11. NNTP-Posting-Host: qcd.lanl.gov
  12. Mime-Version: 1.0
  13. Content-Type: text
  14. In-reply-to: multics@wizvax.wizvax.net's message of 27 Feb 1996 22:04:02 -0500
  15.  
  16. In article <4h0gn2$mnk@wizvax.wizvax.net>
  17. multics@wizvax.wizvax.net (Richard Shetron) writes:
  18. <snip>
  19. RS: >PG: Array CAN NOT be a member of a Union. But, it is always a case in our
  20. RS: >PG: Text Processing - I want to look at my source record's buffer at some 
  21. RS: >
  22. RS: >Are you claiming that
  23. RS: > union { int x;
  24. RS: >     char y[4]; } z;
  25. RS: >is invalid C? Why?
  26. RS: 
  27. RS: Is that int x a long int or a short int?
  28.  
  29. Neither. It is int.
  30.  
  31. RS: 
  32. RS: Last I knew the size of an int was compiler dependent.
  33.  
  34. Last I knew, every type (other than bit field) in C had a `compiler
  35. dependent' size. 
  36.  
  37. C works close to the machine: if you want your own fixed size types,
  38. irrespective of whether the machine supports them, go build them. 
  39.  
  40. I fail to see what this has to do with the validity of arrays in
  41. struct. 
  42.  
  43. Cheers
  44. Tanmoy
  45. --
  46. tanmoy@qcd.lanl.gov(128.165.23.46) DECNET: BETA::"tanmoy@lanl.gov"(1.218=1242)
  47. Tanmoy Bhattacharya O:T-8(MS B285)LANL,NM87545 H:#9,3000,Trinity Drive,NM87544
  48. Others see <gopher://yaleinfo.yale.edu:7700/00/Internet-People/internet-mail>,
  49. <http://alpha.acast.nova.edu/cgi-bin/inmgq.pl>or<ftp://csd4.csd.uwm.edu/pub/
  50. internetwork-mail-guide>. -- <http://nqcd.lanl.gov/people/tanmoy/tanmoy.html>
  51. fax: 1 (505) 665 3003   voice: 1 (505) 665 4733    [ Home: 1 (505) 662 5596 ]
  52.